package cn.wolfcode.p2p.base.service;

import cn.wolfcode.p2p.base.domain.SystemDictionaryItem;
import cn.wolfcode.p2p.base.qo.QueryObject;
import cn.wolfcode.p2p.base.qo.SystemDictionaryItemQueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface ISystemDictionaryItemService {
    int save(SystemDictionaryItem systemDictionaryItem);
    int update(SystemDictionaryItem systemDictionaryItem);

    SystemDictionaryItem get(Long id);

    /**
     * 分页
     * @param qo
     * @return
     */
    PageInfo queryPage(SystemDictionaryItemQueryObject qo);

    void saveOrUpdate(SystemDictionaryItem systemDictionaryItem);

    /**
     * 通过字典编码查询对应的明细
     * @param educationBackground
     * @return
     */
    List<SystemDictionaryItem> queryByParentSn(String sn);
}
